angular.module('faApp')
.service('userService', [ 'ajaxService',function (ajaxService) {

  this.userList = function (cfg) {
    return ajaxService.post(ajaxService.getApiUri("USER_LIST"),cfg || {});
  };
  this.userListTree = function (cfg) {
    return ajaxService.post(ajaxService.getApiUri("USER_LISTTREE"),cfg || {});
  };
  this.userQuery = function (id) {
    return ajaxService.post(ajaxService.getApiUri("USER_QUERY"),{userId : id});
  }; 
  this.userAdd = function (cfg) {
    return ajaxService.post(ajaxService.getApiUri("USER_ADD"),cfg || {});
  }; 
  this.userEdit = function (cfg) {
    return ajaxService.post(ajaxService.getApiUri("USER_EDIT"),cfg || {});
  }; 


}]);


